<template>
  <div class="container">
    <!-- 1.0 查询头部 -->
    <van-nav-bar
      fixed
      left-arrow
      @click-left="$router.go(-1)"
      right-text="搜索"
    >
      <!-- 查询 -->
      <template #title>
        <van-search v-model="value" placeholder="蛋糕各类/名称/品牌" />
      </template>
    </van-nav-bar>

    <!-- 2.0 热门品牌 -->
    <div class="hot-brand">
      <h3>热门品牌</h3>
      <ul>
        <li>幸福西饼(武汉)</li>
        <li>维尔纳斯</li>
        <li>黑池蛋糕(全国)</li>
        <li>弗拉维尔</li>
      </ul>
    </div>

    <!-- 历史搜索 -->
    <div class="search-his">
      <h3>历史搜索</h3>
    </div>
  </div>
</template>

<script>
export default {}
</script>

<style lang="less" scoped>
.container {
  background-color: #f0f0f0;
  padding-top: 46px;
}

.van-search {
  background-color: transparent;
}

.hot-brand {
  margin-top: 0.2rem;
  background-color: #fff;
  padding: 0 0.4rem;

  h3 {
    padding: 0.2rem 0;
    font-size: 0.3rem;
  }

  ul {
    display: flex;
    flex-wrap: wrap;
    li {
      padding: 0.2rem;
      background-color: #f0f0f0;
      border-radius: 40px;
      margin-bottom: 0.2rem;
      margin-right: 0.2rem;
      font-size: 0.24rem;
      color: #666;
    }
  }
}

.search-his {
  margin-top: 0.2rem;
  background-color: #fff;
  padding: 0 0.4rem;

  h3 {
    padding: 0.2rem 0;
    font-size: 0.3rem;
  }
}
</style>
